import Vue from 'vue'
import VueRouter from 'vue-router'
import UserManage from '@/pages/admin/UserManage.vue'
import UserEdit from '@/pages/admin/UserEdit.vue'

Vue.use(VueRouter)

const routes = [
  {
    path: '/admin/users',
    name: 'UserManage',
    component: UserManage
  },
  {
    path: '/admin/users/edit',
    name: 'UserEdit',
    component: UserEdit
  }
]

const router = new VueRouter({
  routes
})

export default router